package com.myqm.pojo.weixin;

import java.sql.Date;
import java.util.List;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModelProperty;

public class OriginalOrder {
	@ApiModelProperty(value="订单id")
	private Integer id;

	@ApiModelProperty(value="订单编号")
	private String orderNo;

	@ApiModelProperty(value="客户id")
	private Integer customerId;

	@ApiModelProperty(value="配送时间")
	private Date distributionDate;

	@ApiModelProperty(value="总价")
	@NotNull
	private Double lumpSum;

	@ApiModelProperty(value="建单时间")
	private String createTime;

	@ApiModelProperty(value="建单人")
	private String createMan;

	@ApiModelProperty(value="状态（下单 采购 入库 出库 收货<部分情况>）")
	@NotNull
	@Min(0)
	private String state;

	@ApiModelProperty(value="审核人")
	private String auditor;

	@ApiModelProperty(value="审核时间")
	private String auditorTime;

	@ApiModelProperty(value="打印计数")
	private Integer printcount;

	@ApiModelProperty(value="备注")
	private String memo;

	@ApiModelProperty(value="1为网络数据，0为手工数据 2微信订单")
	@NotNull
	@Min(0)
	private String isweb;

	@ApiModelProperty(value="0为未审核 1未审核")
	@NotNull
	@Min(0)
	private String isverify;

	@ApiModelProperty(value="取消订单（0，未取消， 1取消）")
	@NotNull
	@Min(0)
	private String cancelFlag;

	@ApiModelProperty(value="取消时间")
	private Date cancelTime;
	
	@ApiModelProperty(value="高水订单id")
	private Long  gsOrderId;
	
	@ApiModelProperty(value="用户单位名称")
	private String customerName;
	
	private List<OrderDetail> details;


    public List<OrderDetail> getDetails() {
		return details;
	}

	public void setDetails(List<OrderDetail> details) {
		this.details = details;
	}

	private static final long serialVersionUID = 1L;


	public Integer getId () {   
		return id;
	}
		
	public void setId (Integer id) {
		this.id= id ;
	}
    public String getOrderNo () {   
    	 return orderNo;
    }

    public void setOrderNo (String orderNo) {
    	 this.orderNo= orderNo == null ? null : orderNo.trim();
    }


	public Integer getCustomerId () {   
		  return customerId;
	}
	
	public void setCustomerId (Integer customerId) {
		  this.customerId= customerId ;
	}

	public Date getDistributionDate () {   
	    return distributionDate;
	}

	public void setDistributionDate (Date distributionDate) {
	    this.distributionDate= distributionDate;
	}

	public Double getLumpSum () {   
		  return lumpSum;
	}
	
	public void setLumpSum (Double lumpSum) {
		  this.lumpSum= lumpSum;
	}
    public String getCreateTime () {   
    	 return createTime;
    }

    public void setCreateTime (String createTime) {
    	 this.createTime= createTime == null ? null : createTime.trim();
    }

    public String getCreateMan () {   
    	 return createMan;
    }

    public void setCreateMan (String createMan) {
    	 this.createMan= createMan == null ? null : createMan.trim();
    }

    public String getState () {   
    	 return state;
    }

    public void setState (String state) {
    	 this.state= state == null ? null : state.trim();
    }

    public String getAuditor () {   
    	 return auditor;
    }

    public void setAuditor (String auditor) {
    	 this.auditor= auditor == null ? null : auditor.trim();
    }

    public String getAuditorTime () {   
    	 return auditorTime;
    }

    public void setAuditorTime (String auditorTime) {
    	 this.auditorTime= auditorTime == null ? null : auditorTime.trim();
    }


	public Integer getPrintcount () {   
		  return printcount;
	}
	
	public void setPrintcount (Integer printcount) {
		  this.printcount= printcount ;
	}
    public String getMemo () {   
    	 return memo;
    }

    public void setMemo (String memo) {
    	 this.memo= memo == null ? null : memo.trim();
    }

    public String getIsweb () {   
    	 return isweb;
    }

    public void setIsweb (String isweb) {
    	 this.isweb= isweb == null ? null : isweb.trim();
    }

    public String getIsverify () {   
    	 return isverify;
    }

    public void setIsverify (String isverify) {
    	 this.isverify= isverify == null ? null : isverify.trim();
    }

    public String getCancelFlag () {   
    	 return cancelFlag;
    }

    public void setCancelFlag (String cancelFlag) {
    	 this.cancelFlag= cancelFlag == null ? null : cancelFlag.trim();
    }


	public Date getCancelTime () {   
	    return cancelTime;
	}

	public void setCancelTime (Date cancelTime) {
	    this.cancelTime= cancelTime;
	}

	public Long getGsOrderId() {
		return gsOrderId;
	}

	public void setGsOrderId(Long gsOrdeId) {
		this.gsOrderId = gsOrdeId;
	}
	
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		 this.customerName= customerName == null ? null : customerName.trim();
	}

	

}
